From 77be1ea4b5e7718403ca5589dac9ae0caf8ec12e Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 23 Sep 2003 12:09:43 +0000 Subject: [PATCH] Fix C99-ism. --- gpsbabel/navicache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/navicache.c b/gpsbabel/navicache.c index 929073730..de6d2500c 100644 --- a/gpsbabel/navicache.c +++ b/gpsbabel/navicache.c @@ -101,8 +101,8 @@ static void nav_start(void *data, const char *el, const char **attr) { if (0 == strcmp(el, "CacheDetails")) { - wpt_tmp = xcalloc(sizeof(*wpt_tmp), 1); const char **ap; + wpt_tmp = xcalloc(sizeof(*wpt_tmp), 1); for (ap = attr; *ap; ap+=2) { if (0 == strcmp(ap[0], "cache_id")) { wpt_tmp->shortname = xstrdup(ap[1]); -- 2.30.2